﻿using System;
using System.Collections.Generic;
using System.Text;
using PlutoStudio.Aspects;
using PlutoStudio.Dependency;
using PlutoStudio.Reflection;
using PlutoStudio.Domain.Repositories;
using PlutoStudio.Application.Services;

namespace PlutoStudio.Domain.UnitOfWork
{
    internal class UnitOfWorkInterceptorRegistrar : IConventionaInterceptorRegistrar
    {
        public void Register(IConventionaInterceptorContext context)
        {
            context.Add<IRepository, UnitOfWorkInterceptor>();
            context.Add<IApplicationService, UnitOfWorkInterceptor>();
        }
    }
}
